﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DayToDayManagement_CMDUPEDIT" Codebehind="CMDUPEDIT.aspx.cs" %>

<%@ Register Src="../Controls/SHANGPINSEARCH.ascx" TagName="SHANGPINSEARCH" TagPrefix="uc3" %>
<%@ Register Src="../Controls/BUTTONDJ.ascx" TagName="BUTTONDJ" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>

    <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>

    <script type="text/javascript">
     function GetPreUpProducts(path) 
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SearchPreUpProduct.aspx?p=0', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:600px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            setValue(handle);
	        }
        }      
     function setValue(sdata)
     {
        var objdst=document.getElementById("Select1");
            for(var a=objdst.options.length;a>0;a--)
            {
                objdst.options[a-1].parentNode.removeChild(objdst.options[a-1]);
            }   
        var ar=sdata.split("|");
        for(var i=0;i<ar.length;i++)
        {
            var array=ar[i].split(",");
            var option = new Option(unescape(array[1]),array[0]);
            objdst.add(option,objdst.options.length+1);              
        }  
     }
     function deloption()
     {
        var objdst=document.getElementById("Select1");
        for(var a=objdst.options.length;a>0;a--)
        {
            if(objdst.options[a-1].selected)
            {
                objdst.options[a-1].parentNode.removeChild(objdst.options[a-1]);
            }
             var hd=document.getElementById("Hidden1");
            for(var i=0;i<objdst.options.length;i++)
            {
                hd.value+=objdst.options[i].value+",";
            }
        }        
     }
    function jsf()
    {
        var objdst=document.getElementById("Select1");
      
        var hd=document.getElementById("Hidden1");
        hd.value="";
        for(var i=0;i<objdst.options.length;i++)
        {
            hd.value+=objdst.options[i].value+",";
        }
        
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div align="Justify">
            <h2>
                <asp:Label ID="Label1" runat="server" Text="新增商品上架单"></asp:Label></h2>
            <div class="juli5">
                <table cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td valign="top" align="left" style="height: 549px">
                            <div class="menu_bg1">
                                <uc1:BUTTONDJ ID="BUTTONDJ1" runat="server" />
                            </div>
                            <br />
                            　　编号：
                            <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox><br />
                            <br />
                            上架类型：&nbsp;&nbsp;<asp:DropDownList ID="DropDownList1" Width="155px" runat="server">
                            </asp:DropDownList><br />
                            <br />
                            　制单人：
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
                            <br />
                            制单日期：
                            <asp:TextBox ID="TextBox2" runat="server" OnClick="getDateString(this,oCalendarChs)"></asp:TextBox><br />
                            <br />
                            　审批人：
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />
                            <br />
                            审批日期：
                            <asp:TextBox ID="TextBox4" runat="server" OnClick="getDateString(this,oCalendarChs)"></asp:TextBox><br />
                            <br />
                            <div>
                                <div style="float: left;">
                                    　　备注：</div>
                                &nbsp;&nbsp;<asp:TextBox ID="TextBox5" runat="server" Height="56px" TextMode="MultiLine"
                                    Width="150px"></asp:TextBox></div>
                            <br />
                            <br />
                            <input id="Hidden1" runat="server" type="hidden" /></td>
                        <td valign="top" align="center" style="height: 449px">
                            &nbsp;&nbsp;&nbsp;</td>
                        <td valign="top" align="center" style="height: 449px">
                            <div class="menu_bg1">
                                <div class="btlj1">
                                    <a href="javascript:void(0);" onclick="GetPreUpProducts('../');">添加商品</a></div>
                                <div class="btlj1">
                                    <a href="javascript:void(0);" onclick="deloption();">删除商品</a></div>
                            </div>
                            <br />
                            <select id="Select1" multiple="true" style="width: 458px; height: 296px" runat="server">
                            </select>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <br />
        <br />
    </form>
</body>
</html>
